package com.news.news.modle;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Date;

@Data
@Component
public class Comment {
    private Integer id;
    private String content;
    private Integer userId;
    private String userName;
    private Integer newsId;
    private String newsName;
    private Integer state;
    private Integer adminId;
    private String adminName;

    @JsonFormat(pattern = "yyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date operTime;//评论时间

    private Integer pageNum=1;//数量
    private Integer pageSize=2;//页长

}
